Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

RichFaces Interview Questions and Answers

Question: What is rich:tree in RichFaces?
Answer:

The rich:tree component renders a tree control on the page. The most important tree features include the following:

  • Native support for Ajax operations
  • Support for ajax, client, and server switch types
  • Selection capabilities
  • Flexible look and feel
<rich:tree id="tree" nodeType="#{node.type}" var="node" value="#{bean.rootNodes}" toggleType="client" selectionType="ajax" selectionChangeListener="#{bean.selectionChanged}">
      <rich:treeNode type="country">#{node.name}</rich:treeNode>
      <rich:treeNode type="company" iconExpanded="/images/ctry.gif" iconCollapsed="/images/tree/disc.gif">#{node.name}</rich:treeNode>
      <rich:treeNode type="cd" iconLeaf="/images/tree/cd.gif">
           #{node.artist} - #{node.name} - #{node.year}
</rich:treeNode>
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook